<%@page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="com.google.appengine.api.datastore.Key"%>
<%@page import="com.google.appengine.api.datastore.KeyFactory"%>
<%@page import="com.wutianyi.google.bean.FormBean"%>
<%@page import="javax.jdo.PersistenceManager"%>
<%@page import="com.wutianyi.google.factory.PMF"%><html>
<head></head>

<body>
<%
	String kId = request.getParameter("kId");
	Key key = KeyFactory.createKey(FormBean.class.getSimpleName(), Long.parseLong(kId));
	PersistenceManager pm = PMF.get().getPersistenceManager();
	FormBean bean = pm.getObjectById(FormBean.class, key);
	if(null != bean)
	{
		request.setAttribute("bean", bean);	
	}
%>
<c:if test="${null != bean}">
	${bean.content.value }
</c:if>
<%
	pm.close();
%>
</body>
</html>